﻿using DotNetty.Transport.Channels;
using FileCommon.Models;

namespace FileServer.Core.Server.Processor;

public interface IServerFileProcessor
{
    event EventHandler<TransferEventArgs> OnTransferHandle;
    event EventHandler<TransferEventArgs> OnTransferCompleteHandle;
    
    Task ServerWriteFile(IChannelHandlerContext ctx, UploadFileInfo uploadFileInfo);
    Task ServerReadFile(IChannelHandlerContext context, UploadFileInfo uploadFileInfo);
}